package tech.soulcoder.基于netty的websocket的实现;

import io.netty.channel.ChannelId;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 存储整个工程的全局配置
 * @author yunfeng.lu
 *
 */
public class NettyConfig {
	
	/**
	 * 存储每一个客户端接入进来时的channel对象
	 */
	public static ChannelGroup group = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
	/**
	 * 连接数
	 */
	public static int channelIds=0;
	public static Map<String,ChannelId> channelMap=new ConcurrentHashMap<>();
}
